<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/model/item.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/smartrfid/dto/itemdto.php');
error_reporting(0);

$limit = $_GET['limit'];

$t=new Item();

$items = $t->loadRepairItems($limit);
$list=array();
foreach($items as $item) {
  array_push($list, new Itemdto($item));
}
echo json_encode($list);




?>
